wget http://download.redis.io/redis-stable.tar.gz

tar -xvf redis-stable.tar.gz

cd ./redis-stable || exit

make PREFIX=/usr/local/redis install

cp redis.conf /usr/local/redis

# 修改 redis.conf
# 启动 ./bin/redis-server ./redis.conf